module.exports = class extends think.Logic {
  delAction() {
    this.rules = {
      id: {
        required: true,
        aliasName: "ID"
      }
    };
  }

  addAction() {
    this.rules = {
      name: {
        required: true,
        aliasName: "参数名"
      },
      key: {
        required: true,
        aliasName: "key"
      },
      value: {
        required: true,
        aliasName: "value"
      },
      type: {
        required: true,
        aliasName: "type"
      }
    };
  }
};
